﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Menu_Info.ascx.cs" Inherits="AdminPortal_Controls_Menu_Menu_Info" %>
<%@ Register src="../Toolbox.ascx" tagname="Toolbox" tagprefix="uc1" %>
<%@ Register src="../FileUpload.ascx" tagname="FileUpload" tagprefix="uc2" %>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>    
<div id="HNGdatagrid">
    <div class="header-datagrid">
        <span class="icon-edit header-text">
                <asp:Label ID="lblTitle" runat="server" Text="Danh muc"></asp:Label>
        </span>
    </div>
    <div class="navibar-control">
            <uc1:Toolbox ID="Toolbox1" runat="server" ShowSave="true" OnSaveClick="btnSave_Click"
                                                      ShowDel="true" OnDelClick="btnDel_Click"
                                                      ShowApply="true" OnApplyClick="btnApply_Click"
                                                      ShowRefesh="true" ShowBack="true" OnBackClick="btnBack_Click"
                                                        />        
        <div class="clearB"></div>
    </div>
    <div class="content-main"> 
    <span style="color:Red;font-style:italic;font-size:11px;"><asp:Label ID="lblthongbao" runat="server" Text=""></asp:Label></span>
        <table cellpadding="0" cellspacing="0" width="100%" class="tableEditInfo">
            <tr>
                <td width="150" class="itemTableLeft">ID</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtID" runat="server" Width="50px" Enabled="false"></asp:TextBox>
                    <asp:HiddenField ID="hidID" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Vị trí</td>
                <td class="itemTableRight">
                    <asp:DropDownList ID="ddlPoistionMenu" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Tiêu đề</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtTitle" runat="server" Width="450"  class="easyui-validatebox" required="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Mô tả</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtMota" runat="server" Width="450" TextMode="MultiLine" Height="60"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Danh mục cha</td>
                <td class="itemTableRight">
                    <asp:DropDownList ID="ddlCateParent" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>       
            <tr>
                <td class="itemTableLeft">Hiển thị theo</td>
                <td class="itemTableRight">
                    <asp:DropDownList ID="ddlShowType" runat="server" Width="150" 
                        AutoPostBack="True" onselectedindexchanged="ddlShowType_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft" valign="top">Chọn Url</td>
                <td class="itemTableRight">
                <div style="float:left;">
                    <asp:ListBox ID="ListDanhMuc" runat="server" Width="250" Height="150" 
                        onselectedindexchanged="ListDanhMuc_SelectedIndexChanged">
                    </asp:ListBox>
                    <asp:HiddenField ID="hidDanhMuc" runat="server" />
                </div>
                <div style="padding-left:10px;float:left;" id="checkDetail" runat="server" visible="false">
                    <asp:CheckBox ID="chkShowByDetail" runat="server" Text="Theo chi tiết" 
                        oncheckedchanged="chkShowByDetail_CheckedChanged" AutoPostBack="True" />
                </div>
                <div style="padding-left:10px;float:left;" id="ShowDataDetail" runat="server" visible="false">
                    <asp:ListBox ID="ListDataDetail" runat="server" Width="250" Height="150">
                    </asp:ListBox>
                </div>
                </td>                
            </tr>
            <tr>
                <td class="itemTableLeft">Kiểu hiển thị</td>
                <td class="itemTableRight">
                    <asp:DropDownList ID="ddlTarget" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Thứ tự</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtOrder" runat="server" Width="50" validType="number"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtOrder"
                                            Display="Dynamic" ErrorMessage="số không hợp lệ" 
                        ValidationExpression="^\d+$" Font-Size="12px"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Trạng thái</td>
                <td class="itemTableRight">
                    <asp:CheckBox ID="chkStatus" runat="server" Checked="true" />
                </td>
            </tr>
        </table>
    </div>
</div>
    </ContentTemplate>
</asp:UpdatePanel>